package com.yugao.fintech.draper.auth.mq;

import com.yugao.fintech.draper.auth.dto.RouteConfVO;
import com.yugao.fintech.draper.message.queue.support.broadcast.RedisBroadcastMessage;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 网关路由更新消息
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RouteMessage extends RedisBroadcastMessage implements Serializable {

	private static final long serialVersionUID = -1L;

	List<RouteConfVO> routeConfList;

	@Override
	public String getTopic() {
		return "route.cache.gateway.topic";
	}

}